package descentFly.app.dialogs
{
	import UIFree.uif_component;
	
	import UIUtils.uif_utilBitmap;
	
	import descentFly.app.df_block;
	import descentFly.app.df_component;
	import descentFly.app.df_images;
	import descentFly.app.df_label;
	import descentFly.app.df_locale;
	import descentFly.app.df_modalLayer;
	import descentFly.app.df_window;
	import descentFly.away3D4.df_loadSection;
	import descentFly.df_utils;
	import descentFly.server.df_servers;
	
	import flash.display.Bitmap;
	import flash.events.Event;
	import flash.geom.Point;
	import flash.geom.Rectangle;
	
	public class df_sceneLoadProgress extends df_window {
		public static const SIZE: Point = new Point(300, 100);
		
		private var _label: df_label;
		public function df_sceneLoadProgress(parent: df_modalLayer) {
			super(parent, SIZE.x, SIZE.y, 'window', true, 1);
		}
		
		override protected function createDialogComponents(a_layer: df_block): void {
			var ls: df_loadSection = new df_loadSection();
			var image: Bitmap = ls.loadBmp(df_servers.IMAGES_URL + df_images.LOGO_SMALL, true);
			ls.endSection(function(): void {
				image.x = (This.width - image.width) / 2; 
				image.y = (This.height - image.height) / 2; 
				addChild(image);
			});
			
			var inner: Rectangle = getInner();
			_label = new df_label(this, inner.x, inner.y, inner.width, inner.height, 'toolLabel');
			_label.text = df_locale.LOADPROGRESS;
		}
		
		override protected function createSysComponents(): void {
			
		}
	}
}